import RPi.GPIO as gpio
import time

PORT=17

gpio.setwarnings(False)
gpio.setmode(gpio.BCM)

time.sleep(1)


gpio.setup(PORT, gpio.IN)

while True:
    if gpio.input(PORT) == 1:
        print "Yes"
    #else:
        #time.sleep(0.1)


gpio.cleanup()
